﻿@{
    ViewBag.Title = "未读消息";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
    ViewBag.NavTitle = "未读消息";
}
@using MvcMall.Framework.MvcPager;
@using MvcMall.Portal.Controllers.Users.ViewModels;
@model PagedList<UserMessageModel>
<div class="right_box">
    <div class="right_box_map">
        我的消息
    </div>
    <div class="right_box_card">
        <ul>
            <li class="right_box_card1"><a href="#">未读消息</a></li>
            <li class="right_box_card2">@Html.ActionLink("发件箱", "SendMessages", "Users", null, null)</li>
            <li class="right_box_card2">@Html.ActionLink("收件箱", "ReceiveMessages", "Users", null, null)</li>
            <li class="right_box_card2">@Html.ActionLink("系统信息", "SysMessages", "Users", null, null)</li>
            <li class="right_box_card2">@Html.ActionLink("写信息", "WriteMessage", "Users", null, null)</li>
        </ul>
    </div>
    <table class="right_box_tab" style="margin-top: 10px;" width="100%" border="0" cellspacing="0"
        cellpadding="0">
        <tr height="30" class="tab_title">
            <td width="15%">
                发件人
            </td>
            <td width="15%">
                发送时间
            </td>
            <td width="50%">
                消息内容
            </td>
            <td>
                操作
            </td>
        </tr>
        @foreach (var item in Model)
        {
            <tr height="40" class="tab_td1" onmouseover="this.className='tab_td2'" onmouseout="this.className='tab_td1'">
                <td>
                    @item.SendUserName
                </td>
                <td>
                    @item.SendTime
                </td>
                <td>
                    @item.Content
                </td>
                <td>
                    @Html.ActionLink("详情", "UserMessageDetail", "Users", new { @Id = item.Id }, null)
                    @Html.ActionLink("回复", "WriteMessage", "Users", new { @receiveUser = item.SendUserName }, null)
                    @Html.ActionLink("删除", "ReceiveDelete", "Users", new { Id = item.Id }, new { @onclick = "return confirm('是否确定删除?');" })
                </td>
            </tr>
        }
    </table>
    @Html.Pager(Model)
</div>
